import Vue from "vue"
import VueRouter from 'vue-router'
//import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Main',
        component: () => import('../views/Main.vue'),
        children: [
            {
                path: '/score',
                name: 'projectScore',
                component: () => import('../views/project/projectScore')
            },
            {
                path: '/add',
                name: 'projectAdd',
                component: () => import('../views/project/projectAdd')
            },
            {
                path: '/attendance',
                name: 'StaffAttendance',
                component: () => import('../views/staff/staffAttendance')
            },
            {
                path: '/events',
                name: 'MajorEvents',
                component: () => import('../views/staff/majorEvents')
            },
            {
                path: '/performance',
                name: 'PerformanceView',
                component: () => import('../views/performance')
            },
            {
                path: '/user',
                name: 'UserPool',
                component: () => import('../views/User/index.vue')
            },
            {
                path: '/resume',
                name: 'Resume',
                component: () => import('../views/resume/index.vue')
            },
            {
                path: '/point',
                name: 'GivePoint',
                component: () => import('../views/point/index.vue')
            },
        ]
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/Login/CommonLogin')
    }
]
const router = new VueRouter({
    routes,
    mode: 'history'
})

export default router
